package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 提问列表
 */
@Getter
@Setter
public class Question extends BaseDomain {
    //提问者
    private User user;
    //提问标题
    private String questionTitle;
    //提问内容
    private String questionContent;
    //提问时间(创建时间)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date questionTime;
    //提问地区
    private String questionPlace;
    //提问图片
    private String questionCoverImgUrl;
    //浏览数
    private Integer readNum = 0; //默认值


 }